package com.imooc;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author caryguan
 * @version V1.0
 * @Package com.imooc
 * @date 2020/9/23 15:13
 */
@Configuration
public class ESConfig {
    /**
     * 解决netty引起的issue
     */
    @PostConstruct
    void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }
}